package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the RI_OCM_MODIF database table.
 * 
 */
@Entity
@Table(name="RI_OCM_MODIF")
public class RiOcmModif implements Serializable {
	private static final long serialVersionUID = 1L;
	private RiOcmModifPK id;
	private String codActoOrig;
	private String errorCode;
	private String errorMessage;
	private String existe;
	private String existia;
	private String keyfileOid;
	private String modificada;
	private BigDecimal numPag;
	private RiPartida riPartida;

    public RiOcmModif() {
    }


	@EmbeddedId
	public RiOcmModifPK getId() {
		return this.id;
	}

	public void setId(RiOcmModifPK id) {
		this.id = id;
	}
	

	@Column(name="COD_ACTO_ORIG", nullable=false, length=5)
	public String getCodActoOrig() {
		return this.codActoOrig;
	}

	public void setCodActoOrig(String codActoOrig) {
		this.codActoOrig = codActoOrig;
	}


	@Column(name="ERROR_CODE", nullable=false, length=6)
	public String getErrorCode() {
		return this.errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}


	@Column(name="ERROR_MESSAGE", length=126)
	public String getErrorMessage() {
		return this.errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}


	@Column(nullable=false, length=1)
	public String getExiste() {
		return this.existe;
	}

	public void setExiste(String existe) {
		this.existe = existe;
	}


	@Column(nullable=false, length=1)
	public String getExistia() {
		return this.existia;
	}

	public void setExistia(String existia) {
		this.existia = existia;
	}


	@Column(name="KEYFILE_OID", nullable=false, length=24)
	public String getKeyfileOid() {
		return this.keyfileOid;
	}

	public void setKeyfileOid(String keyfileOid) {
		this.keyfileOid = keyfileOid;
	}


	@Column(nullable=false, length=1)
	public String getModificada() {
		return this.modificada;
	}

	public void setModificada(String modificada) {
		this.modificada = modificada;
	}


	@Column(name="NUM_PAG", nullable=false, precision=5)
	public BigDecimal getNumPag() {
		return this.numPag;
	}

	public void setNumPag(BigDecimal numPag) {
		this.numPag = numPag;
	}


	//bi-directional many-to-one association to RiPartida
    @ManyToOne
	@JoinColumn(name="REFNUM_PART", nullable=false, insertable=false, updatable=false)
	public RiPartida getRiPartida() {
		return this.riPartida;
	}

	public void setRiPartida(RiPartida riPartida) {
		this.riPartida = riPartida;
	}
	
}